<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS的三种引入方式</title>
</head>
<body>
<button onclick="alert('亲爱的你是无底的黑洞')">可妮叽哇</button>
<button onclick="console.log('姬霓太美')">一刀9999</button>

<div id="d1">哈哈哈</div>
<!--内部写法:推荐写在body 结束之前-->
<!--id值相当于当前HTML元素-->
<script>
  console.log(d1)
  console.log('执行了吗?');
</script>
<script src="01.js"></script>
</body>
</html>